package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.MaterialInputsMapper;
import com.isdepci.project.gasEmission.domain.MaterialInputs;
import com.isdepci.project.gasEmission.service.IMaterialInputsService;

/**
 * 原材料投入Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class MaterialInputsServiceImpl implements IMaterialInputsService
{
    @Autowired
    private MaterialInputsMapper materialInputsMapper;

    /**
     * 查询原材料投入
     */
    @Override
    public MaterialInputs selectMaterialInputsById(Long id)
    {
        return materialInputsMapper.selectMaterialInputsById(id);
    }

    /**
     * 查询原材料投入列表
     */
    @Override
    public List<MaterialInputs> selectMaterialInputsList(MaterialInputs materialInputs)
    {
        return materialInputsMapper.selectMaterialInputsList(materialInputs);
    }

    /**
     * 新增原材料投入
     */
    @Override
    public int insertMaterialInputs(MaterialInputs materialInputs)
    {
        return materialInputsMapper.insertMaterialInputs(materialInputs);
    }

    /**
     * 修改原材料投入
     */
    @Override
    public int updateMaterialInputs(MaterialInputs materialInputs)
    {
        return materialInputsMapper.updateMaterialInputs(materialInputs);
    }

    /**
     * 批量删除原材料投入
     */
    @Override
    public int deleteMaterialInputsByIds(Long[] ids)
    {
        return materialInputsMapper.deleteMaterialInputsByIds(ids);
    }

    /**
     * 删除原材料投入信息
     */
    @Override
    public int deleteMaterialInputsById(Long id)
    {
        return materialInputsMapper.deleteMaterialInputsById(id);
    }
}
